Skip to content

Conversation

lsjostro
Copy link

This PR adds X-Requested-With header for the xhr request, which is sort of standard in many JS ajax libs world. Say you have a auth proxy in front of podinfo and session expires, would be nice to notify user to reload the page to re authenticate. I have added a button which pops up only if xhr status not 200, clicking that reloads the page.

More info about AJAX requests and how to detect them can be found here: https://cloud.google.com/iap/docs/sessions-howto#understanding_the_response

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant